$def with (files)

<h4>Upload:</h3>

<form method="POST" enctype="multipart/form-data" action="/upload" class="ui-widget-content ui-corner-all"/>
<input type="file" style="width:83%;" name="upfile" class="ui-widget-content ui-corner-all" />
<input value="upload" style="width:15%;" type="submit" class="ui-widget-content ui-corner-all"/>
</form>

$if len(files) != 0:
	<h4>Files:</h3>
	$for file in files:
		<form style="display:inline;" method="POST" enctype="multipart/form-data" action="/upload?deletefile=$file">	
			<input value="Delete" type="submit" class="ui-widget-content ui-corner-all"/>
		</form>
		<a href="/static/uploads/$file">$file</a>
		<br>
	
